import 'package:flutter/material.dart';
import 'package:mall/constant/text_style.dart';
import 'package:mall/modules/model/goods_entity.dart';
import 'package:mall/ui/page/goods/widgets/goods_list.dart';

class TabHomeGoods extends StatelessWidget {
  final List<GoodsEntity> productList;
  final String title;

  TabHomeGoods(this.title, this.productList);

  @override
  Widget build(BuildContext context) {
    return Container(
      // padding: EdgeInsets.only(left: 20, right: 20),
      child: Column(
        children: [
          Container(
            width: double.infinity,
            height: 45,
            alignment: Alignment.centerLeft,
            child: Text(title, style: FMTextStyle.color_333333_size_13_bold),
          ),
          GoodsListWidget(
            productList: productList,
          ),
        ],
      ),
    );
  }
}
